export default {
  state:{
    menuTree:null
  },
  getters: {
    menuTree(state){// 对应着上面state
      return state.menuTree
    }
  },
  mutations: {
    setMenuTree(state,menuTree) {  // 改变收缩状态
      state.menuTree = menuTree;
    },
  },
  actions:{
    setMenuTree({commit,state},data){
      commit('setMenuTree',data.menuTree);
    }
  }
}
